package cn.kgc.reflect;

/**
 * @Author: 课工场
 * @Version: v1.0  2023/2/14
 * @Description:
 */
public class Person {

    public  Integer id;

    private String name;

    public Person() {

    }

    private Person(Integer id, String name) {
        this.id = id;
        this.name = name;
    }

    public Person(Integer id) {
        this.id = id;
    }

    public Person(String name) {
        this.name = name;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    private String test01(){
        return "hello";
    }
    @Override
    public String toString() {
        return "Person{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}
